/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28956
 * Date: 2024-07-20
 * Time: 13:38
 */
public class Test {
    public static void main(String[] args) {
        MyLinkQueue myLinkQueue = new MyLinkQueue();
        myLinkQueue.offer(1);
        myLinkQueue.offer(2);
        myLinkQueue.offer(3);
        myLinkQueue.offer(4);
        System.out.println(myLinkQueue.peek());//1
        System.out.println(myLinkQueue.poll());//1
        System.out.println(myLinkQueue.peek());//2
        System.out.println(myLinkQueue.poll());//2
        System.out.println(myLinkQueue.peek());//3

    }
}
